// 创建棋盘网格
function getTable() {
    let Table = document.querySelector(".table")
    Table.innerHTML = ""
    let tr = 15
    let str = ""
    for (let i = 0; i < 14; i++) {
        str += "<div class='th'>"
        let td = 15
        for (let j = 0; j < 14; j++) {

            if (i == 13 && j == 13) {
                str += "<div class='tableButtom tableRight'></div>"
                continue
            }
            if (i == 13) {
                str += "<div class='tableButtom'> </div>"
                continue
            }
            if (j == 13) {
                str += "<div class='tableRight' > </div>"
                continue
            }
            if ((i == 3 && j == 3) || (i == 3 && j == 11) || (i == 11 && j == 3) || (i == 11 && j == 11) || (i == 7 && j ==7)) {
                str += "<div ><i class='top'></i></div>"
            } else {
                str += "<div> </div>"
            }
        }
        str += "</div>"


    }
    Table.innerHTML = str
}
getTable()
